package com.example.demo.service.impl;

import com.example.demo.entity.TSysRole;
import com.example.demo.dao.TSysRoleMapper;
import com.example.demo.service.IAccountService;
import com.example.demo.service.TSysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-02-27
 */
@Service
@Transactional
public class TSysRoleServiceImpl extends ServiceImpl<TSysRoleMapper, TSysRole> implements TSysRoleService {
	
	@Autowired
	private TSysRoleMapper tSysRoleMapper;
	
	@Autowired
	private IAccountService accountService;
	
	public TSysRole test(Long id) {
		return tSysRoleMapper.selectById(id);
	}

}
